package java_test.exception;

public class MyThread extends Thread {
    public void run() {
        System.out.println("Throwing in " + "MyThread");
        throw new RuntimeException();
    }
//    class MyThread extends Thread{
//        public void run(){
//            System.out.println("Throwing in " +"MyThread");
//            throw new RuntimeException();
//        }
//    }
}
